# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=xcalc
pkgver=1.1.0
pkgrel=0
pkgdesc="Calculator for the X Window System"
options="!check" # No testsuite
url="https://www.x.org"
arch="all"
license="MIT"
makedepends="libx11-dev libxaw-dev libxt-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/${pkgname}-${pkgver}.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datarootdir=/usr/share
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="877aab7bb08f409a21c26b841f4d91eb6993914ed0d26512e47d6b3d2b3e0b231158901415a106cfb45de43f03f253bf2a8733f986538d4ee810afe0e54f98d5  xcalc-1.1.0.tar.bz2"
